package com.example.studentportrait.controller.frontend.teacher;

import com.example.studentportrait.domain.ResponseResult;
import com.example.studentportrait.domain.entity.Activity;
import com.example.studentportrait.domain.entity.SpecialStuReview;
import com.example.studentportrait.service.ActivityService;
import com.example.studentportrait.service.SpecialStuReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user/teacher")
public class SpecialStuReviewController {

    @Autowired
    SpecialStuReviewService specialStuReviewService;

    /**
     * 教师端查询待审核的特殊学生列表
     * @param pageNum
     * @param pageSize
     * @param status
     * @return
     */
    @GetMapping("/specialStuReviewList")
    public ResponseResult specialStuReviewList(Integer pageNum, Integer pageSize, Integer status){
        return specialStuReviewService.specialStuReviewList(pageNum,  pageSize,  status);
    }

    /**
     * 教师端审核特殊情况学生认证材料
     * @param specialStuReview
     * @return
     */
    @PutMapping("/reviewSpecialStuById")
    public ResponseResult<SpecialStuReview> reviewSpecialStuById(@RequestBody SpecialStuReview specialStuReview){
        return specialStuReviewService.reviewSpecialStuById(specialStuReview);
    }
}
